﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _79Ini文件读取类
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            IniFile iniFile = new IniFile();
            iniFile.ReadFile(@"C:\Users\UnityPC\Desktop\!sfxunst.ini");
            Console.WriteLine(iniFile.GetString("Group", "Name"));

            DateTime instalTime = iniFile.GetDateTime("Installation", "Date");

            Console.WriteLine("软件已经安装:" + (DateTime.Now - instalTime).Days + "天");
        }
    }
}